package com.atguigu.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

import com.aliyun.oss.*;


/**
 * 测试阿里巴巴的oss服务：
 * http://localhost:10000/product/attrattrgrouprelation/spring-cloud-starter-alicloud-oss
 *
 * 实体校验：先写：@Valid。再在是体力写@NotBlank：
 * eg：
     * 直接 ： http://localhost:10000/product/brand/save
     * 返回400 错误。
     * {
     *     "timestamp": "2022-03-19T04:00:18.366+00:00",
     *     "status": 400,
     *     "error": "Bad Request",
     *     "path": "/product/brand/save"
     * }
 *
 *
 * 异常没弄对
 */
@EnableDiscoveryClient
@MapperScan("com.atguigu.gulimall.product.dao")
@SpringBootApplication // 默认扫描该类所在包的所有注解！！！！！！！！！！！！！！！
public class GulimallProductApplication {


    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
